import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

// https://vitejs.dev/config/
export default defineConfig({
  build: {
    rollupOptions: {
      external: ['lodash-es'], // 添加js-cookie到external
      output: {
        globals: {
          'lodash-es': '_',
        },
      },
    },
  },
  plugins: [uni()],
});
